package com.cts.tmall.dal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cts.tmall.dal.entity.TmallTimingSale;
import com.cts.tmall.dal.provider.TmallTimingSaleProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.Date;

public interface TmallTimingSaleMapper extends BaseMapper<TmallTimingSale> {

    @SelectProvider(value = TmallTimingSaleProvider.class, method = "queryTimingSaleSql")
    @ResultType(TmallTimingSale.class)
    IPage<TmallTimingSale> queryTimingSale(Page<TmallTimingSale> page,
                                           @Param("prdNo") String prdNo, @Param("prdName") String prdName,
                                           @Param("saleStartTime") Date saleStartTime, @Param("saleEndTime") Date saleEndTime,
                                           @Param("createUserId") Long createUserId);


}
